<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        let money = prompt("请输入你的工资：");
        let ge = money - 3500;
        let q = 0;
        if (ge > 0) {
            if (ge >= 0 && ge <= 1500) {
                q = ge * 0.03;
            } else if (ge <= 4500) {
                q = (1500 * 0.03) + (ge - 1500) * 0.1;
            } else if (ge <= 9000) {
                q = (1500 * 0.03) + (4500 - 1500) * 0.1 + (ge - 4500) * 0.2;
            } else if (ge <= 35000) {
                q = (1500 * 0.03) + (4500 - 1500) * 0.1 + (9000 - 4500) * 0.2 + (ge - 9000) * 0.25;
            } else if (ge <= 55000) {
                q = (1500 * 0.03) + (4500 - 1500) * 0.1 + (9000 - 4500) * 0.2 + (35000 - 9000) * 0.25 + (ge - 35000) * 0.3;
            } else if (ge <= 80000) {
                q = (1500 * 0.03) + (4500 - 1500) * 0.1 + (9000 - 4500) * 0.2 + (35000 - 9000) * 0.25 + (55000 - 35000) * 0.3 + (ge - 55000) * 0.35;
            } else {
                q = (1500 * 0.03) + (4500 - 1500) * 0.1 + (9000 - 4500) * 0.2 + (35000 - 9000) * 0.25 + (55000 - 35000) * 0.3 + (80000 - 55000) * 0.35 + (a - 80000) * 0.4;
            }
            alert(`要交${b}元税`);
        } else {
            alert(`不用交税`);
        }

    </script>
</head>

<body>

</body>

</html>